// Generate a random nickname for anonymous users
export function generateNickname(): string {
  const adjectives = [
    "Amazing",
    "Brave",
    "Clever",
    "Daring",
    "Eager",
    "Fierce",
    "Gentle",
    "Happy",
    "Jolly",
    "Kind",
    "Lively",
    "Mighty",
    "Noble",
    "Polite",
    "Quick",
    "Retro",
    "Silent",
    "Tough",
    "Unique",
    "Witty",
  ]

  const nouns = [
    "Astronaut",
    "Beaver",
    "Coder",
    "Dolphin",
    "Eagle",
    "Fox",
    "Giraffe",
    "Hacker",
    "Iguana",
    "Jaguar",
    "Koala",
    "Lion",
    "Moose",
    "Ninja",
    "Owl",
    "Penguin",
    "Rabbit",
    "Shark",
    "Tiger",
    "Wizard",
  ]

  // Generate a random number between 0-99
  const number = Math.floor(Math.random() * 100)

  // Pick a random adjective and noun
  const adjective = adjectives[Math.floor(Math.random() * adjectives.length)]
  const noun = nouns[Math.floor(Math.random() * nouns.length)]

  // Combine them with the number
  return `${adjective}${noun}${number}`
}
